package com.spyx.common.result;

import lombok.Data;

@Data
public class ResponseResult {

    private String code;

    private String message;

    private Object object;

    public static ResponseResult success(Object data) {
        ResponseResult responseResult = new ResponseResult();
        responseResult.setCode("200");
        responseResult.setMessage("请求成功");
        responseResult.setObject(data);
        return responseResult;
    }
}
